/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.contract.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.contract.entity.ContractSymbol;
import com.pig4cloud.pigx.contract.vo.AppContractSymbolDetailVO;
import com.pig4cloud.pigx.contract.vo.ContractAppSymbolDetailedVO;

/**
 * 币对
 *
 * @date 2022-08-09 20:29:23
 */
public interface ContractSymbolService extends IService<ContractSymbol> {

    /**
     * 新增币对
     *
     * @param contractSymbol 币对信息
     * @return R
     */
    R saveSymbol(ContractSymbol contractSymbol);

    /**
     * 编辑（修改） 币对
q     *
     * @param symbol 币对信息
     * @return
     */
    R updateSymbol(ContractSymbol symbol);

    /**
     * 逻辑删除币对
     *
     * @param id 主键id
     * @return R
     */
    R deleteSymbol(Long id);

    /**
     * app端 根据id查询详情
     *
     * @param id id
     * @return {@link AppContractSymbolDetailVO}
     * @date 2022/8/24 22:23
     */
    AppContractSymbolDetailVO appDetail(Long id);

    /**
     * 获取app端币对详情
     *
     * @param id 币对id
     * @return
     */
    ContractAppSymbolDetailedVO getDetailed(Long id);
}
